package pojo;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 供货商表结构
 */
public class Supplier implements Serializable {
    private static final long serialVersionUID = 42L;
    private Long id;//供货商id
    @NotEmpty(message = "供货商编号不能为空")
    private String supCode;//供货商编号
    @NotEmpty(message = "供货商名称不能为空")
    private String supName;//供货商名称
    private String supDesc;//供货商描述
    @NotEmpty(message = "联系人不能为空")
    private String supContact;//联系人
    @NotEmpty(message = "联系电话不能为空")
    private String supPhone;//联系电话
    private String supAddress;//地址
    private String supFax;//传真
    private int createdUserId;//创建人id
    private Date createdTime;//创建时间
    private Long updatedUserId;//修改人id
    private Date updatedTime;//修改时间

    private List<StorageRecord> storageRecordList; // 入库记录集合
    private Object companyLicPicPath; // 公司营业执照图片路径
    private Object orgCodePicPath; // 组织机构代码证图片路径

    public Supplier() {
    }

    public Supplier(Long id, String supCode, String supName, String supDesc, String supContact, String supPhone, String supAddress, String supFax, int createdUserId, Date createdTime, Long updatedUserId, Date updatedTime, Object companyLicPicPath, Object orgCodePicPath) {
        this.id = id;
        this.supCode = supCode;
        this.supName = supName;
        this.supDesc = supDesc;
        this.supContact = supContact;
        this.supPhone = supPhone;
        this.supAddress = supAddress;
        this.supFax = supFax;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.companyLicPicPath = companyLicPicPath;
        this.orgCodePicPath = orgCodePicPath;
    }

    @Override
    public String toString() {
        return "Supplier{" +
                "id=" + id +
                ", supCode='" + supCode + '\'' +
                ", supName='" + supName + '\'' +
                ", supDesc='" + supDesc + '\'' +
                ", supContact='" + supContact + '\'' +
                ", supPhone='" + supPhone + '\'' +
                ", supAddress='" + supAddress + '\'' +
                ", supFax='" + supFax + '\'' +
                ", createdUserId=" + createdUserId +
                ", createdTime=" + createdTime +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime=" + updatedTime +
                ", storageRecordList=" + storageRecordList +
                ", companyLicPicPath=" + companyLicPicPath +
                ", orgCodePicPath=" + orgCodePicPath +
                '}';
    }

    public List<StorageRecord> getStorageRecordList() {
        return storageRecordList;
    }

    public void setStorageRecordList(List<StorageRecord> storageRecordList) {
        this.storageRecordList = storageRecordList;
    }

    public Object getCompanyLicPicPath() {
        return companyLicPicPath;
    }

    public void setCompanyLicPicPath(Object companyLicPicPath) {
        this.companyLicPicPath = companyLicPicPath;
    }

    public Object getOrgCodePicPath() {
        return orgCodePicPath;
    }

    public void setOrgCodePicPath(Object orgCodePicPath) {
        this.orgCodePicPath = orgCodePicPath;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSupCode() {
        return supCode;
    }

    public void setSupCode(String supCode) {
        this.supCode = supCode;
    }

    public String getSupName() {
        return supName;
    }

    public void setSupName(String supName) {
        this.supName = supName;
    }

    public String getSupDesc() {
        return supDesc;
    }

    public void setSupDesc(String supDesc) {
        this.supDesc = supDesc;
    }

    public String getSupContact() {
        return supContact;
    }

    public void setSupContact(String supContact) {
        this.supContact = supContact;
    }

    public String getSupPhone() {
        return supPhone;
    }

    public void setSupPhone(String supPhone) {
        this.supPhone = supPhone;
    }

    public String getSupAddress() {
        return supAddress;
    }

    public void setSupAddress(String supAddress) {
        this.supAddress = supAddress;
    }

    public String getSupFax() {
        return supFax;
    }

    public void setSupFax(String supFax) {
        this.supFax = supFax;
    }

    public int getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(int createdUserId) {
        this.createdUserId = createdUserId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Long updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}
